package lab02.test15;

public class Test extends Graduate{
    public static void main(String[] args) {
        Graduate zhangsan = new Graduate();
        zhangsan.fee=3000;
        zhangsan.pay=5000;
        zhangsan.getFee();
        zhangsan.getPay();

        if(zhangsan.getPay()-zhangsan.getFee()<2000){
            System.out.println("You  need a loan!”");
        }
        else {
            System.out.printf("You income is enough");
        }
    }
}
